<?php
namespace Home\Widget;
use Think\Controller;
class HomeWidget extends   Controller{

    function get_all_category(){
        $this->Categorys=M('blog_category')->order('cid desc')->field('cid,cname')->select();
        $this->display('Widget/category');
    }

    function get_all_tag(){
        $this->tags=M('tag')->order('tid desc')->field('tid,tname')->select();
        $this->display('Widget/tag');
    }

}